﻿namespace Protocol.Code
{
    /// <summary>
    /// 账号子操作码
    /// </summary>
    /// <remarks><list type="table">
    /// <item>S</item> <description>Server</description>
    /// <item>C</item> <description>Client</description>
    /// <item>REQ</item> <description>Request</description>
    /// <item>RES</item> <description>response</description>
    /// <item>RET</item> <description>return</description>
    /// <item>SUC</item> <description>success</description>
    /// <item>ERR</item> <description>error</description>
    /// <item>ACC</item> <description>account</description>
    /// <item>PWD</item> <description>password</description>
    /// </list></remarks>
    public class AccountCode
    {
        //注册
        public const int REGIST_C_REQ = 0;
        public const int REGIST_S_RES = 1;
        //登录
        public const int LOGIN_C_REQ = 2;
        public const int LOGIN_S_RES = 3;

        //注册结果值
        public const int REGIST_RET_SUC = 100;
        public const int REGIST_RET_ACC_ERR = 101;
        public const int REGIST_RET_ACC_EXT = 102;
        public const int REGIST_RET_PWD_ERR = 103;
        //登录结果值
        public const int LOGIN_RET_SUC = 200;
        public const int LOGIN_RET_ACC_OL = 201;
        public const int LOGIN_RET_ACC_UEXT = 202;
        public const int LOGIN_RET_PWD_ERR = 203;
    }
}
